package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.admin.vo.RoomInfoDetailVo;
import com.atguigu.lease.web.admin.vo.RoomInfoVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 1
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2024-08-28 11:00:26
* @Entity com.atguigu.lease.model.entity.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    List<RoomInfoVo> selectPageItem(Page<RoomInfoVo> page,
                                    @Param(Constants.WRAPPER) QueryWrapper<RoomInfoVo> queryWrapper);

    RoomInfoDetailVo selectDetailById(Long id);

    List<RoomInfo> selectRoomInfosByApartmentId(Long apartmentId);
}




